projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1346520
)
testcenterbox: Properly quit on window close
author
Timm Bäder
<mail@baedert.org>
Fri, 1 Sep 2017 17:35:30 +0000
(19:35 +0200)
committer
Timm Bäder
<mail@baedert.org>
Sun, 3 Sep 2017 07:17:35 +0000
(09:17 +0200)
tests/testcenterbox.c
patch
|
blob
|
history
diff --git
a/tests/testcenterbox.c
b/tests/testcenterbox.c
index 151d6bfb915312d4c647076a40ce13a98505f456..9d05d187628c44c0686f50f0e5ba9bf4052a7212 100644
(file)
--- a/
tests/testcenterbox.c
+++ b/
tests/testcenterbox.c
@@
-28,6
+28,8
@@
main (int argc, char *argv[])
gtk_label_set_ellipsize (GTK_LABEL (child), PANGO_ELLIPSIZE_END);
gtk_center_box_set_end_widget (GTK_CENTER_BOX (box), child);
+ g_signal_connect (window, "delete-event", G_CALLBACK (gtk_main_quit), NULL);
+
gtk_widget_show (window);
gtk_main ();